package cn.wolfcode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.assertj.core.util.diff.Delta;

@Setter
@Getter
@ToString
@TableName("employee")
public class Employee {
    @TableId(type=IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String password;
    @TableField(value = "dept_id")
    private Long deptId;
    @TableField(exist = false)
    private Department department;
}
